Skip to main content

SwiftUI ile Hello World

Tarih: 16/11/2025

Bu rehberde macOS ve iOS için basit bir Hello World uygulaması yapacağız.
Adım adım Xcode ve SwiftUI kullanarak uygulama geliştirmeyi öğreneceksiniz.


1. Xcode Projesi Oluşturma

Xcode'u açın ve yeni bir SwiftUI projesi oluşturun.

Xcode Yeni Proje

Adımları takip edin:

  1. File → New → Project
  2. Platform: iOS veya macOS
  3. Interface: SwiftUI
  4. Language: Swift

2. ContentView Oluşturma

ContentView.swift dosyasını açın ve temel UI kodunu ekleyin:

import SwiftUI

struct ContentView: View {
var body: some View {
VStack {
Image(systemName: "hand.wave")
.imageScale(.large)
.foregroundStyle(.green)
Text("Hello, world!")
}
.padding()
}
}

#Preview {
ContentView()
}